package com.junt.library.utils;

import android.content.Context;
import android.util.TypedValue;

import androidx.annotation.NonNull;

public class Utils {
    public static float dp2px(@NonNull Context context, float dp) {
        return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, context.getResources().getDisplayMetrics());
    }
}
